package com.cxh.mybatisflex.pwo.service.impl;


import com.cxh.mybatisflex.pwo.entity.WorkOrder;
import com.cxh.mybatisflex.pwo.mapper.WorkOrderMapper;
import com.cxh.mybatisflex.pwo.service.WorkOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author cxh
 * @date 2024年08月05日 17:05
 */
@Slf4j
@Service
public class WorkOrderServiceImpl implements WorkOrderService {

    @Resource
    private WorkOrderMapper workOrderMapper;

    /**
     * 获取所有订单
     *
     * @return
     */
    @Override
    public List<WorkOrder> getOrderList() {
        List<WorkOrder> orderList = workOrderMapper.getOrderList();
        log.info("orderList: {}", orderList);
        return orderList;
    }
}
